package com.edu.hre.struts.form.pim;

import java.util.Date;

import org.apache.struts.action.ActionForm;

import com.edu.hre.common.utils.CommonUtils;

public class EmpJobForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6056273106708257020L;
	private Integer id;
	private int empNumber;
    private String jobTitle;
    private String employmentStatus;
    private Date joinedDate;
    private String subUnit;
    private String location;
    private Date from;
    private Date to;
    private String terminated;
    private boolean terminatedStatus;
    
    private boolean isSelected = false;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public boolean isSelected() {
		return isSelected;
	}

	public void setSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}
	
	public boolean getIsSelected() {
		return isSelected;
	}

	public void setIsSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}

	public String getJobTitle() {
		return jobTitle;
	}

	public void setJobTitle(String jobTitle) {
		this.jobTitle = jobTitle;
	}

	public String getEmploymentStatus() {
		return employmentStatus;
	}

	public void setEmploymentStatus(String employmentStatus) {
		this.employmentStatus = employmentStatus;
	}

	public String getJoinedDate() {
		return CommonUtils.dateToString(joinedDate);
	}

	public void setJoinedDate(String joinedDate) {
		this.joinedDate = CommonUtils.stringToDate(joinedDate);
	}

	public String getSubUnit() {
		return subUnit;
	}

	public void setSubUnit(String subUnit) {
		this.subUnit = subUnit;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getFrom() {
		return CommonUtils.dateToString(from);
	}

	public void setFrom(String from) {
		this.from = CommonUtils.stringToDate(from);
	}

	public String getTo() {
		return CommonUtils.dateToString(to);
	}

	public void setTo(String to) {
		this.to = CommonUtils.stringToDate(to);
	}

	public int getEmpNumber() {
		return empNumber;
	}

	public void setEmpNumber(int empNumber) {
		this.empNumber = empNumber;
	}

	public String getTerminated() {
		return terminated;
	}

	public void setTerminated(String terminated) {
		this.terminated = terminated;
	}

	public boolean isTerminatedStatus() {
		return terminatedStatus;
	}
	
	public boolean getTerminatedStatus() {
		return terminatedStatus;
	}

	public void setTerminatedStatus(boolean terminatedStatus) {
		this.terminatedStatus = terminatedStatus;
	}
}
